package net.rossillo.spring.sample.facebook.web.servlet.handler;

import java.util.LinkedHashMap;
import java.util.Map;

import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;

import net.rossillo.spring.web.servlet.handler.FacebookHandlerInterceptorAdapter;
import net.rossillo.spring.web.servlet.http.FacebookHttpServletRequest;

public class DashboardContentHandler extends FacebookHandlerInterceptorAdapter {

	@Override
	public void postHandle(
			FacebookHttpServletRequest request,
			HttpServletResponse response, 
			Object handler, 
			ModelAndView mav) throws Exception {
		
		Map<String,String> dashboardLinks = new LinkedHashMap<String,String>();
		
		dashboardLinks.put("Home", "welcome.action");
		dashboardLinks.put("Talk", "talk.action");
		
		mav.addObject("dashboardLinks", dashboardLinks);
	}

}
